package cn.edu.tsinghua.service;

import java.util.List;

import cn.edu.tsinghua.vo.CompanyVO;
import cn.edu.tsinghua.vo.ComponentVO;
import cn.edu.tsinghua.vo.Orders;
import cn.edu.tsinghua.vo.PersonalCustomerVO;

public interface IOrderService {
	
	boolean createNewOrder(Orders order , PersonalCustomerVO person,CompanyVO company);

	List<Orders> findOrdersByPersonId(String personID);
	
	List<Orders> findOrdersByCompanyId(String companyID);
	
	public Orders GetOrderInstance(String orderID);
	
	boolean updateOrderStateByPerson(String ordersID);
	
	boolean updateOrderStateByCompany(String ordersID);
	
	public boolean updateOrder(Orders order);
	
}
